{% extends 'base.html' %}

{% block title %}任务信息{% endblock %}

{% block breadcrumb %}
  <li class="breadcrumb-item"><a href="{% url 'home' %}">主页</a></li>
  <li class="breadcrumb-item active">我的任务</li>
{% endblock %}

{% block content %}
  <form class="form-horizontal" role="form" method="post" novalidate>
    {% csrf_token %}
  <div class="form-group">
    <label class="col-sm-2 control-label">任务:</label>
    <div class="col-sm-10">
      <input class="form-control" id="disabledInput" type="text" placeholder="{{ task.name  }}"  disabled>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">发布者:</label>
    <div class="col-sm-10">
      <input class="form-control" id="disabledInput" type="text" placeholder="{{ task.created_by.username }}"  disabled>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">点数:</label>
    <div class="col-sm-10">
      <input class="form-control" id="disabledInput" type="text" placeholder="{{ task.point }}"  disabled>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">细节:</label>
    <div class="col-sm-10">
      <input class="form-control" id="disabledInput" type="text" placeholder="{{ task.descrition }}"  disabled>
    </div>
  </div>
<div class="text-center" >
   <label class="checkbox-inline">
      <input type="radio" name="optionsRadios" id="optionsRadios1" 
         value="complate" checked> 完成
   </label>
   <label class="checkbox-inline">
      <input type="radio" name="optionsRadios" id="optionsRadios2" 
         value="giveup"> 放弃
   </label>
</div>
 <div class="text-center">
    <button type="confirm" class="btn btn-success">提交</button>
    <a href="{% url 'Tasks:my_task' %}">
    <button type="button" class="btn btn-success">取消</button>
    </a>
 </div>
  </form>

{% endblock %}
